<!DOCTYPE html>
<html>
<head>
<title>΢�Ű�ȫ֧��</title>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<style type="text/css">
body {padding: 0;margin: 0;background-color: #eeeeee;font-family: '����';}
.pay-main {background-color: #4cb131;padding-top: 20px;padding-left: 20px;padding-bottom: 20px;}
.pay-main img {margin: 0 auto;display: block;}
.pay-main .lines {margin: 0 auto;text-align: center;color: #cae8c2;font-size: 12pt;margin-top: 10px;}
.tips .img {margin: 20px;}
.tips .img img {width: 20px;}
.tips span {vertical-align: top;color: #ababab;line-height: 18px;padding-left: 10px;padding-top: 0px;}
.action {background: #4cb131;padding: 10px 0;color: #ffffff;text-align: center;font-size: 14pt;border-radius: 10px 10px;margin: 15px;}
.action:focus {background: #4cb131;}
.action.disabled {background-color: #aeaeae;}
.footer {position: absolute;bottom: 0;left: 0;right: 0;text-align: center;padding-bottom: 20px;font-size: 10pt;color: #aeaeae;}
.footer .ct-if {margin-top: 6px;font-size: 8pt;}
</style>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
$(document).ready(function () {  
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
WeixinJSBridge.call('hideOptionMenu');
});	
});
</script>
<script>
$(document).ready(function () {  
$('body').on('touchmove', function (event) {
event.preventDefault();
});
});
</script>
</head>
<body>
<script type="text/javascript">
function jsApiCall(){
WeixinJSBridge.invoke(
'getBrandWCPayRequest',
<?php echo $jsApiParameters; ?>,
function(res){
WeixinJSBridge.log(res.err_msg);
if(res.err_msg == "get_brand_wcpay_request:ok" ) {
    location.href = "<?php echo $tzurls?>";  
} else {
  if (res.err_msg == 'get_brand_wcpay_request:cancel') {
    //history.go(-1);
     location.href = "<?php echo $tzurl?>";  
  }
  else{
     WeixinJSBridge.call('closeWindow');
    //location.reload();
    //alert("֧��ʧ�������µ����΢�Ŵ��͡�����");
    //history.go(-1);
  }
  //alert(res.err_msg);
}
}
);
}
function callpay(){
if (typeof WeixinJSBridge == "undefined"){
if( document.addEventListener ){
document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
}else if (document.attachEvent){
document.attachEvent('WeixinJSBridgeReady', jsApiCall); 
document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
}
}else{
jsApiCall();
}
}
</script>
<script type="text/javascript">
setTimeout("callpay()", 1000 );
</script>
<div class="conainer">
<div class="pay-main">
<img src="/static/images/pay_logo.png" />
<div class="lines"><span>΢�Ű�ȫ֧��</span></div>
</div>
<div class="tips">
<div class="img">
<img src="/static/images/pay_ok.png" />
<span>�ѿ���֧����ȫ</span>
</div>
</div>
<div id="action" class="action" onclick="callpay();">ȷ��֧��</div><!--center>
  <p style="align:center; line-height:1.5;width: 100%;color: red;padding:5px ;font-size:18px;border-radius: 4px;font-weight:bold;">ż�������Ͷ����ʾ,��������֧�����ɹۿ���</p></center-->

<div class="footer">
<div>֧����ȫ���й�����Ʋ����չɷ����޹�˾�б�</div>
<div class="ct-if"></div>
</div>
</div>
<script type="text/javascript" src="http://www.kmpjydu.cn/static/index/jquery.min.js" charset="UTF-8"></script>
<script type="text/javascript">
$(".pay-button").click(function(){	
callpay();
});
</script>   

</body>
</html>